import { defineConfig } from 'vite'
import { fileURLToPath, URL } from 'url'
import vue from '@vitejs/plugin-vue'
import path from 'path'

import md from './vite-md-plugin'
// https://vitejs.dev/config/
export default defineConfig({
    resolve: {
        alias: {
            'VueEsm': 'vue/dist/vue.esm-bundler.js',
            'useless': fileURLToPath(new URL('../packages', import.meta.url)),
            // 'vue': fileURLToPath(new URL('../node_modules/vue/dist/vue.esm-bundler.js', import.meta.url)),
        }
    },
    plugins: [
        md(),
    ],
    server: {
        port: 8888,
    }
})
